<template>
  <div class="text-color-btn">
    <slot></slot>
    <div class="text-color-block">
      <div class="text-color-block-content" :style="{ backgroundColor: color }"></div>
    </div>
  </div>
</template>

<script lang="ts" setup>
defineProps({
  color: {
    type: String,
    required: true,
  },
})
</script>

<style lang="scss" scoped>
.text-color-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.text-color-block {
  width: 17px;
  height: 4px;
  margin-top: 1px;
  background: url();

  .text-color-block-content {
    width: 100%;
    height: 100%;
  }
}
</style>